package com.Jiang.service;
import com.Jiang.dao.Admin.AdminMapper;
import com.Jiang.pojo.Admin;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service("AdminServiceImpl")
public class AdminServiceImpl implements AdminService {

    @Autowired
    AdminMapper adminMapper;
    public void setAdminMapper(AdminMapper adminMapper) {
        this.adminMapper = adminMapper;
    }

    @Override
    public List<Admin> Login(Map map) {
        return adminMapper.Login(map);
    }

    @Override
    public boolean UpdataPassword(Map map) {
        return false;
    }

    @Override
    public int AddAdmin(Admin user) {
        return 0;
    }

    @Override
    public int DeleteAdmin(Map map) {
        return 0;
    }

    @Override
    public int updateAdminInfo(Map map) {
        return adminMapper.updateAdminInfo(map);
    }

}
